<div class="ctn_account">
<div class="submenu" >
<a href="<?=site_url('account')?>">Vos Commandes</a>
<a href="<?=site_url('account/address')?>">Adresses Livraisons</a>
<a href="<?=site_url('account/update_password')?>">Mot de Passe</a>
</div>
<div class="delivery_address">
<h3>Modifiez Votre Adresse</h3>

<form action="" method="post">
<select name="community_id">
* Commune:
<?php foreach ($communities as $c):?>
<option <?php if($c->code==$delivery_adresse->postal){?>selected="selected"<?php }?> value="<?=$c->id?>"><?=$c->code?>&nbsp;<?=$c->name?></option>
<?php endforeach;?>
</select><br>
<?php echo form_error('ring','<div class="error">* ', '</div>'); ?>
<label>* Sonnette:</label><input value="<?=$delivery_adresse->ring?>" type="text" name="ring"><br>
<?php echo form_error('house_num','<div class="error">* ', '</div>'); ?>
<label>* Numéro:</label><input value="<?=$delivery_adresse->house_num?>" type="text" name="house_num"><br>
<?php echo form_error('address','<div class="error">* ', '</div>'); ?>
<label>* Adresse:</label><input value="<?=$delivery_adresse->address?>" type="text" name="address"><br>
<?php echo form_error('tele','<div class="error">* ', '</div>'); ?>
<label>* Téléphone:</label><input value="<?=$delivery_adresse->tele?>" type="text" name="tele"><br>
<input value="<?=$delivery_adresse->id?>" type="hidden" name="id">
<input type="submit" value="modifiez"> ou
<a href="<?=site_url('account/address')?>">annuler</a>
</form>

</div>
<div class="clear"></div>
</div>
<div class="clear"></div>
</div>